package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbShop", description="门店位置实体类")
@TableName(value = "tb_shop")
@Accessors(chain = true)
public class TbShop implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @TableField(value = "province_id")
    private Integer provinceId;

    @TableField(value = "city_id")
    private Integer cityId;

    @TableField(value = "area_id")
    private Integer areaId;

    @ApiModelProperty(value = "是否是常用门店：1：常用")
    @TableField(value = "ishot")
    private Integer ishot;

    @ApiModelProperty(value = "门店名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "地址")
    @TableField(value = "address")
    private String address;

    @ApiModelProperty(value = "经度")
    @TableField(value = "longitude")
    private String longitude;

    @ApiModelProperty(value = "维度")
    @TableField(value = "dimensionality")
    private String dimensionality;

//    @ApiModelProperty(value = "添加时间")
//    @TableField(value = "addtime")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private LocalDate addtime;

    @TableField(exist = false)
    private BaseArea baseArea;

    @TableField(exist = false)
    private BaseArea sheng;

    @TableField(exist = false)
    private BaseArea city;

    @TableField(exist = false)
    private BaseArea xian;

    @TableField(exist = false)
    private TbCar tbCar;

}